package com.jichangxiu.common.constant;

import cn.hutool.extra.spring.SpringUtil;
import com.jichangxiu.common.properties.JcxProperties;

public interface Constants {

    public static final JcxProperties JCX_PROPERTIES = SpringUtil.getBean(JcxProperties.class);

    public static final String UNIFIED_RETURN_VALUE = "UNIFIED_RETURN_VALUE";

    public static final String TO_CLIENT_STATUS_KEY = JCX_PROPERTIES.getClientProperties().getToClientStatusKey();

    public static final Boolean CLIENT_STATUS_SUCCESS_VALUE = JCX_PROPERTIES.getClientProperties().getToClientStatusSuccessValue();

    public static final Boolean CLIENT_STATUS_FAIL_VALUE = JCX_PROPERTIES.getClientProperties().getToClientStatusFailValue();

    public static final String TO_CLIENT_CODE_KEY = JCX_PROPERTIES.getClientProperties().getToClientCodeKey();

    public static final Integer CLIENT_CODE_SUCCESS_VALUE = JCX_PROPERTIES.getClientProperties().getToClientCodeSuccessValue();

    public static final Integer CLIENT_CODE_FAIL_VALUE = JCX_PROPERTIES.getClientProperties().getToClientCodeFailValue();

    public static final String TO_CLIENT_MESSAGE_KEY = JCX_PROPERTIES.getClientProperties().getToClientMessageKey();

    public static final String CLIENT_MESSAGE_SUCCESS_VALUE = JCX_PROPERTIES.getClientProperties().getToClientMessageSuccessValue();

    public static final String CLIENT_MESSAGE_FAIL_VALUE = JCX_PROPERTIES.getClientProperties().getToClientMessageFailValue();

    public static final String TO_CLIENT_DATA_KEY = JCX_PROPERTIES.getClientProperties().getToClientDataKey();

    public static final String TO_CLIENT_PAGE_TOTAL_KEY = JCX_PROPERTIES.getClientProperties().getToClientPageTotalKey();

    public static final String TO_CLIENT_PAGE_DATA_KEY = JCX_PROPERTIES.getClientProperties().getToClientPageDataKey();

    public static final String OBJECT_ID_KEY = JCX_PROPERTIES.getObjectProperties().getObjectIdKey();

    public static final String OBJECT_CODE_KEY = JCX_PROPERTIES.getObjectProperties().getObjectCodeKey();

    public static final String OBJECT_NAME_KEY = JCX_PROPERTIES.getObjectProperties().getObjectNameKey();

    public static final String CURRENT_LOGIN_USER = "CURRENT_LOGIN_USER";

    public static final String TEN_SUPER_TENANT = "TEN_SUPER_TENANT";

    public static final String TEN_SUPER_DEPT = "TEN_SUPER_DEPT";

    public static final String TEN_SUPER_POST = "TEN_SUPER_POST";

    public static final String TEN_SUPER_USER = "TEN_SUPER_USER";

    public static final String TEN_SUPER_ROLE = "TEN_SUPER_ROLE";

    public static final String SYS_SUPER_DEPT = "SYS_SUPER_DEPT";

    public static final String SYS_SUPER_POST = "SYS_SUPER_POST";

    public static final String SYS_SUPER_USER = "SYS_SUPER_USER";

    public static final String SYS_SUPER_ROLE = "SYS_SUPER_ROLE";

    public static final String DEFAULT_DATA_SOURCE = "DEFAULT_DATA_SOURCE";

    public static final String DATA_SCOPE = "dataScope";

    public static final String AND_DATA_SCOPE = "andDataScope";

    public static final String YES = "Y";

    public static final String No = "N";

    public static final String UTF_8 = "UTF-8";

    public static final String RSA = "RSA";

    public static final String ALL_PERMISSION = "*:*:*";

    public static final String TOKEN_PREFIX = "Bearer ";

}
